summaryrefslogtreecommitdiff
path: root/app/[lng]/procurement/(procurement)/items-tech/layout.tsx
blob: d375059b1c414eacff28856194d241cdd1ffc247 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import * as React from "react"
import { ItemTechContainer } from "@/components/items-tech/item-tech-container"
import { Shell } from "@/components/shell"
import { DataTableSkeleton } from "@/components/data-table/data-table-skeleton"

// Layout 컴포넌트는 서버 컴포넌트입니다
export default function ItemsShipLayout({
  children,
}: {
  children: React.ReactNode
}) {
  // 아이템 타입 정의
  const itemTypes = [
    { id: "ship", name: "조선 아이템" },
    { id: "top", name: "해양 TOP" },
    { id: "hull", name: "해양 HULL" },
  ]

  return (
    <Shell className="gap-4">
      <React.Suspense
      fallback={
        <DataTableSkeleton
          columnCount={6}
          searchableColumnCount={1}
          filterableColumnCount={2}
          cellWidths={["10rem", "40rem", "12rem", "12rem", "8rem", "8rem"]}
          shrinkZero
        />
      }
    >
      <ItemTechContainer itemTypes={itemTypes}>
        {children}
      </ItemTechContainer>
    </React.Suspense>
    </Shell>
  )
}